import 'package:dio/dio.dart';
import 'package:animation/http/dio_instance.dart';

// bilibili 番剧更新列表
Future<Response> updateList() => DioInstance.instance()
    .get(path: 'https://bangumi.bilibili.com/web_api/timeline_global');

// 获取视频
Future<Response> getVideo({String? msg, int? ssid}) =>
    DioInstance.instance().get(
        path: 'https://www.hhlqilongzhu.cn/api/sp_jx/bilbil/api.php',
        param: {
          "msg": msg,
          "ss_id": ssid,
        });

// b站弹幕下载
Future<Response> getDanmu({required String oid}) => DioInstance.instance()
    .get(path: 'https://api.bilibili.com/x/v1/dm/list.so?oid=$oid');

// 诺诺子视频
Future<Response> getNunoVideo({required String key, required int url}) =>
    DioInstance.instance().get(
      path:
          'https://api.nuonuozi.cn/api/SearchVideo/search.php?key=$key&url=$url',
    );

// 迟言影视搜索
Future<Response> getCyVideo({required String msg}) => DioInstance.instance()
    .get(path: 'https://cyapi.top/yz/tv.php?msg=$msg');
